﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="storeinfo.ascx.cs" Inherits="Com.Web.coffinegurunaru.manager.store.storeinfo" %>
<%@ Import Namespace="Com.Library.DB.Store" %>
				<table cellpadding="0" cellspacing="1" style="background-color:White; width:400;" class="m_UpdateStore" data="{'StoreNo':'<%=this.StoreInfo.StoreNo%>'}">
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; width:100px; text-align:center;">No</td>
					<td style="background-color:White; width:400px; text-align:left;"><%=this.StoreInfo.StoreNo %></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; width:100px; text-align:center;">아이디</td>
					<td style="background-color:White; width:400px; text-align:left;"><%=this.StoreInfo.UserID %></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; width:100px; text-align:center;">상태</td>
					<td style="background-color:White; width:400px; text-align:left;">
						<select class="m_IsActive">
							<option value="Y" <%=this.StoreInfo.IsActive == "Y" ? "selected='selected'" : "" %>>활성</option>
							<option value="N" <%=this.StoreInfo.IsActive == "N" ? "selected='selected'" : "" %>>비활성</option>
						</select>
					</td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; width:100px; text-align:center;">가맹점명</td>
					<td style="background-color:White; width:400px; text-align:left;"><input type="text" class="m_StoreName" value="<%=this.StoreInfo.StoreName%>" style="width:120px" /></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; width:100px; text-align:center;">오픈일</td>
					<td style="background-color:White; width:400px; text-align:left;"><input type="text" class="m_OpenDate"  style="width:120px" value="<%=this.StoreInfo.OpenDate %>" /></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">사업자번호</td>
					<td style="background-color:White; text-align:left;"><input type="text" class="m_CompanyNo1" style="width:80px" value="<%=this.StoreInfo.GetCompanyNo(0) %>"/>-<input type="text" class="m_CompanyNo2" style="width:80px" value="<%=this.StoreInfo.GetCompanyNo(1) %>"/>-<input type="text" class="m_CompanyNo3" style="width:80px" value="<%=this.StoreInfo.GetCompanyNo(2) %>"/></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">전화번호</td>
					<td style="background-color:White; text-align:left;"><input type="text" class="m_Phone1" style="width:80px" value="<%=this.StoreInfo.GetPhone(0) %>"/>-<input type="text" class="m_Phone2" style="width:80px" value="<%=this.StoreInfo.GetPhone(1) %>"/>-<input type="text" class="m_Phone3" style="width:80px" value="<%=this.StoreInfo.GetPhone(2) %>"/></td>
				</tr>
				<tr style="height:60px;">
					<td style="background-color:#eeeeee; text-align:center;">주소</td>
					<td style="background-color:White; text-align:left;"><input type="text" class="m_PostNo1" style="width:80px" readonly="readonly" value="<%=this.StoreInfo.GetPostNo(0) %>"/>-<input type="text" class="m_PostNo2" style="width:80px" readonly="readonly"  value="<%=this.StoreInfo.GetPostNo(1) %>"/>&nbsp;&nbsp;<input type="button" class="m_btnPostSearch" value="우편번호검색" /><br />
					<input type="text" class="m_Address"  style="width:400px" value="<%=this.StoreInfo.Address%>"/><br />
					Naver 지도 좌표 X : <input type="text" class="m_PointX"  style="width:80px" readonly="readonly" value="<%=this.StoreInfo.PointX %>"/>&nbsp;&nbsp;&nbsp; Y : <input type="text" class="m_PointY"  style="width:80px" readonly="readonly"  value="<%=this.StoreInfo.PointY %>"/>
					<input type="button" value="지도확인" class="m_NaverMapSearch" />
					</td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">지역</td>
					<td style="background-color:White; text-align:left;"><input type="text" class="m_CityName" style="width:200px" value="<%=this.StoreInfo.CityName %>" /></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">테이크아웃</td>
					<td style="background-color:White; text-align:left;">
						<select class="m_IsTakeout" style="width:80px" >
						<option value="1" <%=this.StoreInfo.IsTakeout == "1" ? "selected='selected'" : ""%>>가능</option>
						<option value="2" <%=this.StoreInfo.IsTakeout == "2" ? "selected='selected'" : ""%>>불가능</option>
						<option value="3" <%=this.StoreInfo.IsTakeout == "3" ? "selected='selected'" : ""%>>기타</option>
						</select>
						<input type="text" class="m_Takeout" <%=this.StoreInfo.IsTakeout == "3" ? "" : "style='display:none;'"%>" value="<%=this.StoreInfo.Takeout %>"/>
					</td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">주차여부</td>
					<td style="background-color:White; text-align:left;"><select class="m_IsParking" style="width:80px" >
						<option value="1" <%=this.StoreInfo.IsParking == "1" ? "selected='selected'" : ""%>>가능</option>
						<option value="2" <%=this.StoreInfo.IsParking == "2" ? "selected='selected'" : ""%>>불가능</option>
						<option value="3" <%=this.StoreInfo.IsParking == "3" ? "selected='selected'" : ""%>>기타</option>
						</select>
						<input type="text" class="m_Parking" <%=this.StoreInfo.IsParking == "3" ? "" : "style='display:none;'"%> value="<%=this.StoreInfo.Parking %>"/>
					</td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">매장크기</td>
					<td style="background-color:White; text-align:left;"><input type="text" class="m_StoreSize" style="width:200px" value="<%=this.StoreInfo.StoreSize%>"/></td>
				</tr>
				<tr style="height:30px;">
					<td style="background-color:#eeeeee; text-align:center;">오픈시간</td>
					<td style="background-color:White; text-align:left;"><input type="text" class="m_OpenTime" style="width:200px" value="<%=this.StoreInfo.OpenTime%>"/></td>
				</tr>
				<tr style="height:200px;">
					<td style="background-color:#eeeeee; text-align:center;">설명</td>
					<td style="background-color:White; text-align:left;"><textarea class="m_Desc" cols="1" rows="1" style="width:400px; height:180px;"><%=this.StoreInfo.Description%></textarea></td>
				</tr>
				<tr>
					<td style="background-color:#eeeeee; text-align:center;">파일</br></br><input type="button" value="이미지추가" style="width:80px;" id="btnImageAdd"/></td>
					<td style="height:100px;" class="m_FileList"><table><tr>
<%foreach (StoreImageEntity item in StoreImageList) { %>
						<td align='center'><img src='<%=item.ImageURL %>' width='80' height='80' /><input type='hidden' class='m_ImageURL' value='<%=item.ImageURL %>'/><br/><a href='#' onclick='$.StoreList.ImageRemove(this); return false;'>삭제</a></td>
<%} %>
					</tr></table></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="button" value="수정" style="width:150px;" id="m_btnStoreModify"/>&nbsp;<input type="button" value="취소" style="width:150px;" id="m_btnStoreCancel"/></td>
				</tr>
				</table>
